package io.github.talelin.latticy.dto.stock;

import io.github.talelin.latticy.common.pojo.BasePage;
import io.github.talelin.latticy.dto.query.BasePageDTO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;

/**
 * ClassName StockDTO
 * Description
 * Create by zcy
 * Date 2022-06-29
 */
@Data
public class StockDTO extends BasePage implements Serializable {
    private static final long serialVersionUID = 1189599584192844918L;

    /**
     * 仓库代码
     */
    @NotBlank(message = "{warehouse.code.not-blank}")
    private String warehouseCode;

    /**
     * 客户代码
     */
    private String customerCode;

    /**
     * 产品代码
     */
    @NotBlank(message = "{sku.code.not-blank}")
    private String sku;

    /**
     * 产品名称
     */
    @NotBlank(message = "{sku.name.not-blank}")
    private String skuName;

    /**
     * 入库数量
     */
    @PositiveOrZero(message = "{sku.quantity}")
    @NotNull(message = "{sku.quantity.not-blank}")
    private Long quantity;

}
